package com.study.lxy.netty.util;

import com.study.lxy.netty.dto.ResponseData;

public class ResponseBuilder {

    public static <T> ResponseData<T> build(T data){
        ResponseData responseData = new ResponseData();
        responseData.setReturnCode("000000");
        responseData.setReturnMsg("success");
        responseData.setData(data);
        return responseData;
    }
}
